﻿namespace Maple.Weixin.MP.Entities.Messages
{
    public interface IMessageBus
    {
        /// <summary>
        /// 根据消息找到其对应的服务。
        /// </summary>
        /// <param name="reqeustMessage">所请求的消息。</param>
        /// <returns>与消息对应的服务。</returns>
        IResponseService FindService(RequestMessageBase requestMessage);
    }
}
